<template>
	<view class="page-container">
		<rich-text :nodes="htmlData"></rich-text>
	</view>
</template>

<script setup>
	import {
		ref,
		getCurrentInstance,
	} from 'vue'
	import {
		onLoad,
		onShow,
		onShareAppMessage,
		onShareTimeline
	} from '@dcloudio/uni-app'
	const {
		proxy
	} = getCurrentInstance();
	
	const htmlData = ref(null);

	onLoad((e) => {
	proxy.$request({
		url: `${proxy.$api.getAbout}`,
		method: "POST",
	}).then(res => {
		htmlData.value =  res.data.replaceAll("\n","<br><br>")
	})
	})

	onShow(() => {

	})
</script>

<style lang="less" scoped>
	.page-container{
		padding: 40rpx 40rpx 40rpx 40rpx;
		font-family: monospace;
		line-height: 45rpx;
	}
</style>
